<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div></div>
    <script>
        var div = document.querySelector("div")
        div.onclick = function(){
            console.log(1)
        }
        // var reg = /a/g
        // var str = "eter"

        // console.log(reg.exec(str))


        // console.log(Object.prototype.toString.call([]))
        // console.log(Object.prototype.toString.call({}))
        // console.log(Object.prototype.toString.call(1))
        // console.log(Object.prototype.toString.call(false))
        // console.log(Object.prototype.toString.call(null))
        // console.log(Object.prototype.toString.call(function))

        
    </script>
</body>

</html>